#ifndef SERVER_VIEW_H
#define SERVER_VIEW_H

#include "ServerModel.h"
#include "View.h"
#include "Screen.h"
#include "d3dx9.h"
#include "d3d9.h"
#include <string>

const LPCSTR _serverTitle = "Server: Routing Messages";
const int _serverTitleLen = strlen(_serverTitle);

const D3DCOLOR _serverTextColor = D3DCOLOR_ARGB(255, 255, 255, 255);

class ServerView: public View
{
  public:
    ServerView(Screen* s, Model* m, LPDIRECT3DDEVICE9 dd3d);
    ~ServerView(void);
    void InitRects(void);
  protected:
    void PreRender(void);
    void PostRender(void);
    void Draw(void);
    void HandleMessage(Message* msg);
  private:
    LPD3DXFONT _font;
    ServerModel* _model;
    RECT _titleRect;
};

#endif
